home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / file-tra / rdist-6.1 / rdist-6 / rdist-6.1.0-linuxpl2 / config / os-dynixptx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-31  |  4.2 KB  |  181 lines

  1. /*
  2.  * Copyright (c) 1993 Michael A. Cooper
  3.  * Copyright (c) 1993 Regents of the University of California.
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source and binary forms, with or without
  7.  * modification, are permitted provided that the following conditions
  8.  * are met:
  9.  * 1. Redistributions of source code must retain the above copyright
  10.  *    notice, this list of conditions and the following disclaimer.
  11.  * 2. Redistributions in binary form must reproduce the above copyright
  12.  *    notice, this list of conditions and the following disclaimer in the
  13.  *    documentation and/or other materials provided with the distribution.
  14.  * 3. All advertising materials mentioning features or use of this software
  15.  *    must display the following acknowledgement:
  16.  *    This product includes software developed by the University of
  17.  *    California, Berkeley and its contributors.
  18.  * 4. Neither the name of the University nor the names of its contributors
  19.  *    may be used to endorse or promote products derived from this software
  20.  *    without specific prior written permission.
  21.  *
  22.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  23.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  26.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  27.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  28.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  29.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  30.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  31.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32.  * SUCH DAMAGE.
  33.  */
  34.  
  35. /*
  36.  * $Id: os-dynixptx.h,v 6.11 1994/03/31 04:09:15 mcooper Exp $
  37.  * @(#)os-dynixptx.h
  38.  */
  39.  
  40. /*
  41.  * System V Release 4 (dynixptx)
  42.  */
  43.  
  44. /*
  45.  * Define the following name for use in #ifdef's.
  46.  * The value should be all upper-case with no periods (.).
  47.  */
  48. #if    !defined(dynixptx)
  49. #define dynixptx
  50. #endif
  51.  
  52. /*
  53.  * We need <utime.h>
  54.  */
  55. #define NEED_UTIME_H
  56.  
  57. /*
  58.  * Set process args to messages that show up when running ps(1)
  59.  *
  60.  * Under some OS's, the SETARGS code will cause ": is not an identifier"
  61.  * errors for "special" commands.
  62.  */
  63. #define SETARGS
  64.  
  65. /*
  66.  * Define the type of directory routines your system has.
  67.  */
  68. #define DIR_TYPE    DIR_DIRENT
  69.  
  70. /*
  71.  * Determine what routines we have to get filesystem info.
  72.  */
  73. #define FSI_TYPE    FSI_GETMNTENT
  74.  
  75. /*
  76.  * Type of non-blocking I/O.
  77.  */
  78. #define NBIO_TYPE    NBIO_FCNTL
  79.  
  80. /*
  81.  * Type of wait() function to use.
  82.  */
  83. #define WAIT_TYPE    WAIT_WAITPID
  84.  
  85. /*
  86.  * Type of argument passed to wait() (above).
  87.  */
  88. #define WAIT_ARG_TYPE    int
  89.  
  90. /*
  91.  * Select the type of executable file format.
  92.  */
  93. #define EXE_TYPE    EXE_COFF
  94. #define FILEHDR_H    <filehdr.h>    /* Name of <filehdr.h> include file */
  95.  
  96. /*
  97.  * Select the type of statfs() system call (if any).
  98.  */
  99. #define STATFS_TYPE    STATFS_SYSV
  100.  
  101. /*
  102.  * Type of arg functions we have.
  103.  */
  104. #define ARG_TYPE    ARG_VARARGS
  105.  
  106. /*
  107.  * Do we have select()?
  108.  */
  109. #define HAVE_SELECT
  110.  
  111. /*
  112.  * Type of signal handling functions.
  113.  */
  114. #if    !defined(POSIX_SIGNALS)
  115. #define POSIX_SIGNALS
  116. #endif
  117. #include <signal.h>
  118. #define signal(s,a) sigset(s,(void(*)())a)
  119.  
  120. /*
  121.  * System V compatibility
  122.  */
  123. #include <string.h>
  124. #include <fcntl.h>
  125. #include <sys/select.h>
  126. #include <time.h>
  127. #include <netdb.h>
  128.  
  129. #define bcopy(a,b,c)     memcpy(b,a,c)
  130. #define bzero(a,b)     memset(a,0,b)
  131. #define setlinebuf(a)    setvbuf(a, NULL, _IOLBF, BUFSIZ)
  132.  
  133.  
  134. /*
  135.  * UID argument type for chown()
  136.  */
  137. typedef uid_t CHOWN_UID_T;
  138.  
  139. /*
  140.  * GID argument type for chown()
  141.  */
  142. typedef gid_t CHOWN_GID_T;
  143.  
  144. /*
  145.  * Our types
  146.  */
  147. typedef uid_t UID_T;    /* Must be signed */
  148. typedef gid_t GID_T;    /* Must be signed */
  149.  
  150. /*
  151.  * Generic pointer, used by memcpy, malloc, etc.  Usually char or void.
  152.  */
  153. typedef char POINTER;
  154.  
  155. /*
  156.  * Type of set file time function available
  157.  */
  158. #define SETFTIME_TYPE    SETFTIME_UTIME
  159.  
  160. #define MOUNTED MNTTABNAME
  161.  
  162. /*
  163.  * We have fchown()
  164.  */
  165. #undef HAVE_FCHOWN
  166.  
  167. /*
  168.  * We have fchmod()
  169.  */
  170. #undef HAVE_FCHMOD
  171.  
  172. /*
  173.  * We don't have u_char
  174.  */
  175. typedef unsigned char u_char;
  176.  
  177. /*
  178.  * Path to the remote shell command
  179.  */
  180. #define _PATH_REMSH    "/usr/bin/resh"
  181.